package com.dfy.mapper;

import com.dfy.entity.Review;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface ReviewMapper {
    List<Review> findBySpotId(@Param("spotId") Long spotId, @Param("offset") int offset, @Param("limit") int limit);
    int countBySpotId(@Param("spotId") Long spotId);
    Review findById(Long id);
    int insert(Review review);
    int update(Review review);
    int delete(Long id);
} 